package office.action.hr.wrapper;


public class StationChangeWrapper {

	private String id;
	private String userId;				//用户id
	private String name;				//姓名
	private String dept;				//部门
	private String office;				//原职务
	private String appointmentDate;		//入职时间
	private String newOffice;			//拟定职务
	private String changeType;			//异动类型
	private String selfAgree;			//本人意见
	private String entryDate;			//申请时间
	private String state;				//状态
	private String stateName;
	
	public StationChangeWrapper(){
		
	}
	/**
	 * 查询异动信息
	 * @param name
	 * @param userId
	 * @param id
	 * @param office
	 * @param appointmentDate
	 * @param newOffice
	 * @param changeType
	 * @param selfAgree
	 */
	public StationChangeWrapper(String name,String userId,String id,
			String office,String appointmentDate,String newOffice,
			String changeType,String selfAgree,String entryDate,String state,String deptName) {
		this.userId = userId;
		this.name = name;
		this.id = id;
		this.office = office;
		this.appointmentDate = appointmentDate;
		this.newOffice = newOffice;
		this.changeType = changeType;
		this.selfAgree = selfAgree;
		this.entryDate = entryDate;
		if(changeType.equals("0")){
			this.changeType = "晋升";
		}else{
			this.changeType = "调岗";
		}
		if(null!=state && !("").equals(state)){
			if(state.equals("-1")){
				this.stateName = "审批驳回";
			}else if(state.equals("0")){
				this.stateName = "未提交审批";
			}else if(state.equals("1")){
				this.stateName = "审批过程";
			}else if(state.equals("100")){
				this.stateName="审批完成";
			}
		}
		this.state = state;
		this.dept = deptName;
	}
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getDept() {
		return dept;
	}
	public void setDept(String dept) {
		this.dept = dept;
	}
	public String getOffice() {
		return office;
	}
	public void setOffice(String office) {
		this.office = office;
	}
	public String getAppointmentDate() {
		return appointmentDate;
	}
	public void setAppointmentDate(String appointmentDate) {
		this.appointmentDate = appointmentDate;
	}
	public String getNewOffice() {
		return newOffice;
	}
	public void setNewOffice(String newOffice) {
		this.newOffice = newOffice;
	}
	public String getChangeType() {
		return changeType;
	}
	public void setChangeType(String changeType) {
		this.changeType = changeType;
	}
	public String getSelfAgree() {
		return selfAgree;
	}
	public void setSelfAgree(String selfAgree) {
		this.selfAgree = selfAgree;
	}
	public String getEntryDate() {
		return entryDate;
	}
	public void setEntryDate(String entryDate) {
		this.entryDate = entryDate;
	}
	public String getState() {
		return state;
	}
	public void setState(String state) {
		this.state = state;
	}
	public String getStateName() {
		return stateName;
	}
	public void setStateName(String stateName) {
		this.stateName = stateName;
	}
	
}
